﻿<%@ Page language="C#" MasterPageFile="~/_layouts/application.master" Inherits="SharePoint.Intranet.LinkChecker.Pages.LinkCheckerHome, SharePoint.Intranet.LinkChecker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=efdb01c7046f0023" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> <%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls" Assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
	Scan for broken links
</asp:Content>

<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	Scan for broken links
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderGlobalNavigationSiteMap" runat="server">
    <asp:SiteMapPath SiteMapProvider="SPSiteMapProvider" id="GlobalNavigationSiteMap" RenderCurrentNodeAsLink="true" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/>
</asp:Content>


<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderMain" runat="server">

    <wssuc:ToolBar runat="server" id="ToolBar" CssClass="ms-toolbar">
		<Template_RightButtons>
	        <SharePoint:SiteAdministrationSelector id="SiteSelector" runat="server" OnContextChange="SiteSelector_ContextChange" />	
		</Template_RightButtons>
	</wssuc:ToolBar>
    

    <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
        <tr>
            <td>
                <wssuc:InputFormSection runat="server" Title="Schedule link scan" Description="Schedule a scan of this site collection to report on broken links"
                    id="idScheduleReportsSection">
                    <template_inputformcontrols>
	                    <wssuc:InputFormControl runat="server">
	                        <Template_Control>
		                        <asp:Button id="btnImmediateScan" runat="server" Text="Immediate Scan" OnClick="btnImmediateScan_Click" />
	                        </Template_Control>
	                    </wssuc:InputFormControl>
	                </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:InputFormSection runat="server" Title="View Reports" Description="Once scans are complete the reports can be viewed here"
                    id="idReportsSection">
                    <template_inputformcontrols>
	                    <wssuc:InputFormControl runat="server">
	                        <Template_Control>
		                        <table width="100%" border="0">
		                            <tr>
		                                <td valign="top">
		                                    <asp:ListBox ID="ReportsList" runat="server" />
		                                </td>
		                                <td valign="top">
		                                    <asp:Button ID="btnViewReport" runat="server" Text="View Report" OnClick="btnViewReport_Click" />
		                                </td>
		                            </tr>
		                        </table>
		                        <a href="/Lists/Broken Link Scan Reports">View Reports Library</a>
	                        </Template_Control>
	                    </wssuc:InputFormControl>
	                </template_inputformcontrols>
                </wssuc:InputFormSection>
            </td>
        </tr>
    </table>
</asp:Content>
